#include "stl.h"
#include "parse.h"
#include "solution.h"
int main(int argc, char *argv[])
{
    string str = "[[\"30\",\"[[0,1,10],[1,2,10],[2,5,10],[0,3,1],[3,4,10],[4,5,15]]\",\"[5,1,2,20,20,3]\"],[\"29\",\"[[0,1,10],[1,2,10],[2,5,10],[0,3,1],[3,4,10],[4,5,15]]\",\"[5,1,2,20,20,3]\"],[\"25\",\"[[0,1,10],[1,2,10],[2,5,10],[0,3,1],[3,4,10],[4,5,15]]\",\"[5,1,2,20,20,3]\"]]";
    vector<vector<string>> arr = parseStringArrArr(str);
    for (int i = 0; i < arr.size(); i++)
    {
      vector<string> args = arr[i];
      Solution *s = new Solution();
      int arg0 = parseInteger(args[0]);
      vector<vector<int>> arg1 = parseIntegerArrArr(args[1]);
      vector<int> arg2 = parseIntegerArr(args[2]);
      int result=s->minCost(arg0,arg1,arg2);
      string resultabc =serializeInteger(result);
      cout << "resultabc"+to_string(i)+":" << resultabc <<"resultend"<< endl;
    }
    return 0;
}